{% extends "commons/layout.html" %}
{% block content %}
    <div class="container-fluid">
        <div class="left-aside">
            <ul class="navbar-aside">
                <li class="{{'active' if req.originalUrl == '/admin' else '' }}">
                    <a href="/admin">
                        {% if req.originalUrl == "/admin" %}
                            <img class="navbar-logo" src="/img/home_blue_icon.png" alt="">
                        {% else %}
                            <img class="navbar-logo" src="/img/home_grey_icon.png" alt="">
                        {% endif %}
                        <span>首页</span>
                    </a>
                </li>
                <li class="{{'active' if req.originalUrl == '/admin/order' else '' }}">
                    <a href="/admin/order">
                        {% if req.originalUrl == "/admin/order" %}
                        <img class="navbar-logo" src="/img/order_blue_icon.png" alt="">
                        {% else %}
                        <img class="navbar-logo" src="/img/order_grey_icon.png" alt="">
                        {% endif %}
                        <span>订单</span>
                    </a>
                </li>
                <li class="{{'active' if req.originalUrl == '/admin/process' else '' }}">
                    <a href="/admin/process">
                        {% if req.originalUrl == "/admin/process" %}
                        <img class="navbar-logo" src="/img/jiagong_blue_icon.png" alt="">
                        {% else %}
                        <img class="navbar-logo" src="/img/jiagong_grey_icon.png" alt="">
                        {% endif %}
                        <span>加工</span>
                    </a>
                </li>
                <li>
                    <a href="">
                        <img class="navbar-logo" src="/img/daili_grey_icon.png" alt="">
                        <span>代理</span>
                    </a>
                </li>
                <li>
                    <a href="">
                        <img class="navbar-logo" src="/img/wode_grey_icon.png" alt="">
                        <span>我的</span>
                    </a>
                </li>
                <li>
                    <a href="/user/logout">
                        <img class="navbar-logo" src="/img/tuichu_grey_icon.png" alt="">
                        <span>退出</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="right-content">
            <div class="admin-content">
                {% block admin_content %}
                {% endblock %}
            </div>
        </div>
    </div>
{% endblock %}